package com.hopu.v1.service.admin.classes.attendance.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hopu.v1.mapper.admin.classes.attendance.AttendanceMapper;
import com.hopu.v1.pojo.classes.attendance.Attendance;
import com.hopu.v1.service.admin.classes.attendance.AttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhengShuYue
 * @description 针对表【t_attendance(学生考勤表)】的数据库操作Service实现
 * @createDate 2024-09-25 15:32:14
 */
@Service
public class AttendanceServiceImpl extends ServiceImpl<AttendanceMapper, Attendance>
        implements AttendanceService {
    @Autowired
    private AttendanceMapper attendanceMapper;

    @Override
    public List<Attendance> getStudentById(Long id) {
        return attendanceMapper.getStudentById(id);
    }

    @Override
    public List<Attendance> getAllByStartHours() {
        return attendanceMapper.getAllByStartHours();
    }

    @Override
    public List<Attendance> getAllByEndHours() {
        return attendanceMapper.getAllByEndHours();
    }

    @Override
    public List<Attendance> updateStatusById(Long id) {
        return attendanceMapper.updateStatusById(id);
    }

    @Override
    public List<Attendance> getStatusById(Long id) {
        return attendanceMapper.getStatusById(id);
    }
}




